<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head>
    <title>用JS给文档插入文字水印</title>
</head>
<body>


<script type="text/javascript">
    function AfterDocumentOpened() {
        pageofficectrl.word.SetWaterMark("水印文字");
    }

</script>
<div style="width:auto; height:670px;" th:utext="${pageoffice}">
</div>

</body>

</html>
